package com.designpatterns.factory.methodfactory;

import com.designpatterns.factory.Soft;

/**
 * @author Tinu 1810989@qq.com
 */
public class MethodFactoryTest {

    public static void main(String[] args) {
        ISoftFactory iSoftFactory = null;
        Soft soft = null;

        iSoftFactory = new OASoftFactory();
        soft = iSoftFactory.createSoft();
        soft.create();


        iSoftFactory = new CMSSoftFactory();
        soft = iSoftFactory.createSoft();
        soft.create();
    }
}
